
"""
This code show howto manage user and default parameters using logmanager
"""

from pylot.core.logmanager import LogManager
from pylot.core.path import Path
from pylot.defaultconf import defaultconf

#For example, we choose ~/.logmanagerdemo as user configuration directory and configs directory
#for default configuration directory

userpath = Path('~/.logmanagerdemo').expanduser()
defaultpath = Path('configs').abspath()

l = LogManager(defaultconf=(defaultconf, defaultpath), userconf=userpath)
l.init()
l.addCollection('MyCollection.csv')
print l.MyCollection['b1']['d1']
l.MyCollection['b1']['d1'] = 2000
l.quit()
